/*
 * Created by JFormDesigner on Fri Jul 05 17:28:24 EDT 2013
 */

package MaintMenu.VenPricingUpdMasterFiles.Mast1ToMastMenu;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;

/**
 * @author Jason Chi
 */
public class MastMenu extends JFrame {
    String cat= "null";
    String cat1="null";

    public MastMenu() {


        initComponents();
    }

    private void bcActionPerformed(ActionEvent e) {

        cat     ="bcmast";
        cat1    ="bcmast1";
        Trn6CategoryUpdateMasterfiles catcon = new Trn6CategoryUpdateMasterfiles(cat, cat1);
    }

    private void clActionPerformed(ActionEvent e) {

        cat     ="coolngm";
        cat1    ="coolngm1";
        Trn6CategoryUpdateMasterfiles catcon = new Trn6CategoryUpdateMasterfiles(cat, cat1);
    }

    private void mrActionPerformed(ActionEvent e) {

        cat     ="mirrorm1";
        cat1    ="mirrorm11";
        Trn6CategoryUpdateMasterfiles catcon = new Trn6CategoryUpdateMasterfiles(cat, cat1);
    }

    private void otActionPerformed(ActionEvent e) {

        cat     ="otmast";
        cat1    ="otmast1";
        Trn6CategoryUpdateMasterfiles catcon = new Trn6CategoryUpdateMasterfiles(cat, cat1);
    }

    private void hfActionPerformed(ActionEvent e) {

        cat     ="hfmast";
        cat1    ="hfmast1";
        Trn6CategoryUpdateMasterfiles catcon = new Trn6CategoryUpdateMasterfiles(cat, cat1);
    }

    private void ltActionPerformed(ActionEvent e) {

        cat     ="lt_mast1";
        cat1    ="lt_mast11";
        Trn6CategoryUpdateMasterfiles catcon = new Trn6CategoryUpdateMasterfiles(cat, cat1);
    }

    private void allcatActionPerformed(ActionEvent e) {
        cat     ="bcmast";
        cat1    ="bcmast1";
        Trn6CategoryUpdateMasterfiles bc = new Trn6CategoryUpdateMasterfiles(cat, cat1);

        cat     ="coolngm";
        cat1    ="coolngm1";
        Trn6CategoryUpdateMasterfiles cl = new Trn6CategoryUpdateMasterfiles(cat, cat1);

        cat     ="mirrorm1";
        cat1    ="mirrorm11";
        Trn6CategoryUpdateMasterfiles mr = new Trn6CategoryUpdateMasterfiles(cat, cat1);

        cat     ="otmast";
        cat1    ="otmast1";
        Trn6CategoryUpdateMasterfiles ot = new Trn6CategoryUpdateMasterfiles(cat, cat1);

        cat     ="hfmast";
        cat1    ="hfmast1";
        Trn6CategoryUpdateMasterfiles hf = new Trn6CategoryUpdateMasterfiles(cat, cat1);

        cat     ="lt_mast1";
        cat1    ="lt_mast11";
        Trn6CategoryUpdateMasterfiles lt = new Trn6CategoryUpdateMasterfiles(cat, cat1);
    }

    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
        // Generated using JFormDesigner Evaluation license - Jason Chi
        dialogPane = new JPanel();
        contentPanel = new JPanel();
        label1 = new JLabel();
        bc = new JButton();
        cl = new JButton();
        mr = new JButton();
        ot = new JButton();
        hf = new JButton();
        lt = new JButton();
        allcat = new JButton();
        buttonBar = new JPanel();

        //======== this ========
        Container contentPane = getContentPane();
        contentPane.setLayout(new BorderLayout());

        //======== dialogPane ========
        {
            dialogPane.setBorder(new EmptyBorder(12, 12, 12, 12));

            // JFormDesigner evaluation mark
            dialogPane.setBorder(new javax.swing.border.CompoundBorder(
                new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0),
                    "JFormDesigner Evaluation", javax.swing.border.TitledBorder.CENTER,
                    javax.swing.border.TitledBorder.BOTTOM, new java.awt.Font("Dialog", java.awt.Font.BOLD, 12),
                    java.awt.Color.red), dialogPane.getBorder())); dialogPane.addPropertyChangeListener(new java.beans.PropertyChangeListener(){public void propertyChange(java.beans.PropertyChangeEvent e){if("border".equals(e.getPropertyName()))throw new RuntimeException();}});

            dialogPane.setLayout(new BorderLayout());

            //======== contentPanel ========
            {
                contentPanel.setLayout(new GridBagLayout());
                ((GridBagLayout)contentPanel.getLayout()).columnWidths = new int[] {0, 0, 0, 0, 0, 0, 0};
                ((GridBagLayout)contentPanel.getLayout()).rowHeights = new int[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
                ((GridBagLayout)contentPanel.getLayout()).columnWeights = new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};
                ((GridBagLayout)contentPanel.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};

                //---- label1 ----
                label1.setText("Copy Mast1 to Mast");
                contentPanel.add(label1, new GridBagConstraints(5, 0, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 0), 0, 0));

                //---- bc ----
                bc.setText("BC");
                bc.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        bcActionPerformed(e);
                    }
                });
                contentPanel.add(bc, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));

                //---- cl ----
                cl.setText("CL");
                cl.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        clActionPerformed(e);
                    }
                });
                contentPanel.add(cl, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));

                //---- mr ----
                mr.setText("MR");
                mr.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        mrActionPerformed(e);
                    }
                });
                contentPanel.add(mr, new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));

                //---- ot ----
                ot.setText("OT");
                ot.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        otActionPerformed(e);
                    }
                });
                contentPanel.add(ot, new GridBagConstraints(0, 5, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));

                //---- hf ----
                hf.setText("HF");
                hf.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        hfActionPerformed(e);
                    }
                });
                contentPanel.add(hf, new GridBagConstraints(0, 6, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));

                //---- lt ----
                lt.setText("LT");
                lt.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        ltActionPerformed(e);
                    }
                });
                contentPanel.add(lt, new GridBagConstraints(0, 7, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));

                //---- allcat ----
                allcat.setText("Process All");
                allcat.setToolTipText("Overwite cat master files with Tim's ");
                allcat.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        allcatActionPerformed(e);
                    }
                });
                contentPanel.add(allcat, new GridBagConstraints(5, 8, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 0, 0), 0, 0));
            }
            dialogPane.add(contentPanel, BorderLayout.CENTER);

            //======== buttonBar ========
            {
                buttonBar.setBorder(new EmptyBorder(12, 0, 0, 0));
                buttonBar.setLayout(new GridBagLayout());
                ((GridBagLayout)buttonBar.getLayout()).columnWidths = new int[] {0, 85, 80};
                ((GridBagLayout)buttonBar.getLayout()).columnWeights = new double[] {1.0, 0.0, 0.0};
            }
            dialogPane.add(buttonBar, BorderLayout.SOUTH);
        }
        contentPane.add(dialogPane, BorderLayout.CENTER);
        pack();
        setLocationRelativeTo(getOwner());
        // JFormDesigner - End of component initialization  //GEN-END:initComponents
    }

    // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
    // Generated using JFormDesigner Evaluation license - Jason Chi
    private JPanel dialogPane;
    private JPanel contentPanel;
    private JLabel label1;
    private JButton bc;
    private JButton cl;
    private JButton mr;
    private JButton ot;
    private JButton hf;
    private JButton lt;
    private JButton allcat;
    private JPanel buttonBar;
    // JFormDesigner - End of variables declaration  //GEN-END:variables
}
